<div class="admin_left actions">
    <h3 style="font-size:20px;">Manage more</h3>
        <ul>
                <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Images'), array('action' => 'index')); ?></li>
                <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Items'), array('controller' => 'items', 'action' => 'index')); ?> </li>
                <li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add')); ?> </li>
        </ul>
</div>


<?php if ($current_customer['group_id'] == 1): ?>
        <div class="admin_right images form">

        <div id=breadcrumbAdmin>
                <?php $this->Html->addCrumb('Images', '/Images/index'); ?>
                <?php $this->Html->addCrumb('Add', '/Images/add', array('style'=> ('text-decoration:underline; color:#EB1E70;'))); ?>
                <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Items', 'url' => array('controller' => 'items', 'action' => 'index'), 'escape' => false)); ?>
        </div>

            <?php
                echo $this->Form->create('Image', array('enctype' => 'multipart/form-data'));
                //echo $this->Form->input('id');
            ?>
                    <fieldset>
                            <legend><?php echo __('Add Image'); ?></legend>
                            <?php
                                    echo $this->Form->input('name', array('label' => false, 'div' => false, 'type' => 'file'));
                                    echo $this->Form->input('item_id');
                                    //echo $this->Form->input('location');
                            ?>
                    </fieldset>
            <?php echo $this->Form->end(__('Submit')); ?>
        </div>

<?php else: ?>
    <?php echo "You are not supposed to view this page"; ?>
<?php endif; ?>
